-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lidar_centerpoint): output the covariance of pose and twist #6573
feat(lidar_centerpoint): output the covariance of pose and twist #6573
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR 👍
Please fix the conflict before opening the PR, and also some CIs those are failing 🙏
FYI: https://tier4.atlassian.net/wiki/spaces/~727523079/pages/2417199892/Pull+Request
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6573 +/- ##
==========================================
- Coverage 14.93% 14.93% -0.01%
==========================================
Files 1944 1939 -5
Lines 134061 133700 -361
Branches 39891 39756 -135
==========================================
- Hits 20027 19971 -56
+ Misses 91735 91483 -252
+ Partials 22299 22246 -53
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: tzhong518 <[email protected]>
Config of pointpainting is updated. |
Possible Configurations: pr_reviewer.require_score_review = False pr_description.publish_labels = True pr_questions.enable_help_text = True pr_code_suggestions.max_context_tokens = 8000 pr_add_docs.extra_instructions = '' pr_update_changelog.push_changelog_changes = False pr_test.extra_instructions = '' pr_improve_component.num_code_suggestions = 4 pr_similar_issue.skip_comments = False |
I am testing the centerpoint_sigma model with lsim
centerpoint_sigma2.mp4 |
It would be better to add available option list in dnn detector launcher
|
Compatibility checkI checked this PR would not brake conventional detection process with sample-rosbag in autoware tutorial.
Twist check
Pose covariance checkCurrent model seems not able to measure covariance, but the process still works. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It worked! But I think we need to fix autoware_launch
first.
Could you make PR and link it to this?
perception/image_projection_based_fusion/src/pointpainting_fusion/node.cpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Yoshi Ri <[email protected]>
…ion/node.cpp Co-authored-by: Yoshi Ri <[email protected]>
Co-authored-by: Yoshi Ri <[email protected]>
Signed-off-by: tzhong518 <[email protected]>
PR to autoware_launch: autowarefoundation/autoware_launch#945 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left one minor comment.
Also, let ius discuss in slack whether to handle this as a centerpoint_model
or different model (e.g. lidar_model = centerpoint_sigma
)
perception/lidar_centerpoint/lib/postprocess/postprocess_kernel.cu
Outdated
Show resolved
Hide resolved
Signed-off-by: tzhong518 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix the launcher misconfiguration?
...perception_launch/launch/object_recognition/detection/detector/lidar_dnn_detector.launch.xml
Outdated
Show resolved
Hide resolved
…tion/detector/lidar_dnn_detector.launch.xml Co-authored-by: Taekjin LEE <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…owarefoundation#6573) * feat: postprocess variance Signed-off-by: tzhong518 <[email protected]> * feat: output variance Signed-off-by: tzhong518 <[email protected]> * feat: add has_variance to config Signed-off-by: tzhong518 <[email protected]> * fix: single_inference node Signed-off-by: tzhong518 <[email protected]> * style(pre-commit): autofix * fix: add to pointpainting param Signed-off-by: tzhong518 <[email protected]> * Update perception/lidar_centerpoint/src/node.cpp Co-authored-by: Yoshi Ri <[email protected]> * Update perception/image_projection_based_fusion/src/pointpainting_fusion/node.cpp Co-authored-by: Yoshi Ri <[email protected]> * Update perception/lidar_centerpoint/src/node.cpp Co-authored-by: Yoshi Ri <[email protected]> * fix: add options Signed-off-by: tzhong518 <[email protected]> * fix: avoid powf Signed-off-by: tzhong518 <[email protected]> * Update launch/tier4_perception_launch/launch/object_recognition/detection/detector/lidar_dnn_detector.launch.xml Co-authored-by: Taekjin LEE <[email protected]> --------- Signed-off-by: tzhong518 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Yoshi Ri <[email protected]> Co-authored-by: Taekjin LEE <[email protected]>
Description
This PR enables the centerpoint node to update the covariance of covariance of pose and twist.
The variance comes from the model trained with sigma loss(https://github.com/tier4/AWMLdetection3D/pull/133), which predicts the variance of the boundingbox's size, position, and velocity.
Related links
Please download the centerpoint_sigma model from https://drive.google.com/drive/folders/1Thr_M1Jo1-ByP23qjLmXiFh-abdStD2J?usp=drive_link
Tests performed
ros2 launch lidar_centerpoint lidar_centerpoint.launch.xml model_name:=centerpoint_sigma input/pointcloud:=/sensing/lidar/concatenated/pointcloud
output:
`ros2 topic echo ~/objects
classification:
probability: 1.0
kinematics:
pose_with_covariance:
pose:
position:
x: 14.863276481628418
y: -30.522504806518555
z: 0.982421875
orientation:
x: 0.0
y: -0.0
z: -0.8441231237133663
w: -0.5361493747197593
covariance:
has_position_covariance: true
orientation_availability: 1
twist_with_covariance:
twist:
linear:
x: 6.219586886509506e-05
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: 7.58850622177124
covariance:
has_twist: true
has_twist_covariance: true
shape:
type: 0
footprint:
points: []
dimensions:
x: 5.908353805541992
y: 2.103604555130005
z: 2.882314920425415
---`
Notes for reviewers
Interface changes
Effects on system behavior
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.